// 接口api

// 用户管理
export namespace User {
  export interface UserItem {
    avatar?: string
    id?: number
    menus: Array<MenuItem>
    role: object
    ruleNames: Array<string>
    super: number
    username: string
  }
}

export namespace Home {
  export interface panelItem {
    title: string
    value: number
    unit: string
    unitColor: string
    subTitle: string
    subValue: number
    subUnit: string
  }
  export interface CardItem {
    label: string
    value: number
  }
}

export interface MenuItem {
  id: number
  rule_id: number
  status: number
  name: string
  desc: string
  frontpath: string
  menu: number
  order: number
  icon: string
  method: string
  child: Array<MenuItem>
}

export interface noticeItem {
  content: string
  title: string
  create_time: string
  id: number
  order: number
}
